import http from '/@/utils/request'

/**
 * 新增胶水信息
 */
export const addGlue = (data) => {
    return http.request({
        url: '/glue/add',
        method: 'put',
        data
    })
}
export const updateGlue = (data) => {
    return http.request({
        url: '/glue/update',
        method: 'put',
        data
    })
}

/**
 * 查询胶水信息列表
 */
export const listGlue = (query) => {
    return http.request({
        url: '/glue/list',
        method:'get',
        params:query
    })
}
/**
 * 查询胶水信息详情
 */
export const getGlue = (id) => {
    return http.request({
        url: '/glue/list.info'+id,
        method:'get',
    })
}

/**
 * 删除胶水信息
 */
export const delGlue = (id) => {
    return http.request({
        url: '/glue/' + id,
        method: 'put'
    })
}
